package cn.isaac.firstkotlin.practice

import android.os.Build

/**
 * Created by RaoWei on 2017/5/22 15:17.
 */

inline fun supportsLollipop(code: () -> Unit) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        code()
    }
}
